<template>
  <view class="container">
    <view class="item" @click="logout">
      <view>退出登录</view>
      <uni-icons type="right" size="20"></uni-icons>
    </view>
    <view class="item" @click="gozhuxiaouser">
      <view>注销账号</view>
      <uni-icons type="right" size="20"></uni-icons>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    // 退出登录
    logout() {
      uni.clearStorage();
      uni.navigateTo({
        url: '/pages/login/login'
      });
    },
    // 跳转到注销用户
    gozhuxiaouser() {
      uni.navigateTo({
        url: '/pages/zhuxiaouser/zhuxiaouser'
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.container {
  box-sizing: border-box;
  .item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 750rpx;
    height: 120rpx;
    padding: 40rpx;
    background: #ffffff;
  }
}
</style>
